import request from '@/utils/request'

// 查询会员-订单列表
export function listConvey(query) {
  return request({
    url: '/convey/convey/list',
    method: 'get',
    params: query
  })
}

// 查询会员-订单详细
export function getConvey(id) {
  return request({
    url: '/convey/convey/' + id,
    method: 'get'
  })
}

// 新增会员-订单
export function addConvey(data) {
  return request({
    url: '/convey/convey',
    method: 'post',
    data: data
  })
}

// 修改会员-订单
export function updateConvey(data) {
  return request({
    url: '/convey/convey',
    method: 'put',
    data: data
  })
}

// 删除会员-订单
export function delConvey(id) {
  return request({
    url: '/convey/convey/' + id,
    method: 'delete'
  })
}
